﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace KetBanBonPhuong
{
    /// <summary>
    /// Summary description for StatusConversion
    /// </summary>
    public class StatusConversion
    {
        public StatusConversion()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public static String StatusConvert(byte Status)
        {
            String StrStatus = null;
            switch(Status)
            {
                case 0:
                    StrStatus = "Chưa kích hoạt";
                    break;
                case 1:
                    StrStatus = "Đã kích hoạt";
                    break;
                case 2:
                    StrStatus = "Tạm ngưng";
                    break;
                case 3:
                    StrStatus = "Đã bị chặn";
                    break;
                default:
                    StrStatus = null;
                    break;
            }
            return StrStatus;
        }
    }    
}

